<?php 
include 'connect.php';
$reQuery = mysql_query("SELECT * FROM project.chat");
 $numrows=mysql_num_rows($reQuery);
  if($numrows!=0 ){
		echo'<div id="msgDiv">';
		while($row =mysql_fetch_assoc($reQuery)){
			$mail=$row['message'];
			$ID=$row['student_ID'];
			echo "From ::   $ID <br> message ::    $mail  ";
			echo"<br>";			
  	   }
	   echo'</div>';
  } 
?>